package com.ruoyi.project.formula.chapter.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 内容章节对象 chapter
 * 
 * @author shixiangwen
 * @date 2020-10-11
 */
public class Chapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String name;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 学段 */
    @Excel(name = "学段")
    private Long summaryId;

    /** 分类 */
    @Excel(name = "分类")
    private Long subjectId;

    /** 排序 */
    @Excel(name = "排序")
    private Long vsort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setSummaryId(Long summaryId) 
    {
        this.summaryId = summaryId;
    }

    public Long getSummaryId() 
    {
        return summaryId;
    }
    public void setSubjectId(Long subjectId) 
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() 
    {
        return subjectId;
    }
    public void setVsort(Long vsort) 
    {
        this.vsort = vsort;
    }

    public Long getVsort() 
    {
        return vsort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("grade", getGrade())
            .append("summaryId", getSummaryId())
            .append("subjectId", getSubjectId())
            .append("vsort", getVsort())
            .toString();
    }
}
